import request from '@/api/resquest1'
export function classList(res) {
  return request({
    url: '/admin/xy/clazz/list',
    method: 'get',
    res
  })
}

export function classDesc(res) {
  return request({
    url: '/admin/xy/clazz/detail',
    method: 'get',
    res
  })
}
export function addClassList(res) {
  return request({
    url: '/admin/xy/clazz/save',
    method: 'post',
    res
  })
}
export function updateClassList(res) {
  return request({
    url: '/admin/xy/clazz/update',
    method: 'post',
    res
  })
}
export function removeClassList(res) {
  return request({
    url: '/admin/xy/clazz/del',
    method: 'get',
    res
  })
}
export function numZhuan(e, str, num, num1) {
  if (e == str) {
    e = num
  } else {
    e = num1
  }
  return e
}
